home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 19
/
CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso
/
CUCD
/
Programming
/
LEDA
/
prog
/
basic
/
vec.c
< prev
Wrap
C/C++ Source or Header
|
1994-08-05
|
375b
|
32 lines
#include <LEDA/matrix.h>
#include <LEDA/array.h>
main()
{
array<vector> A(5);
array<matrix> B(5);
A.print("A = ",'\n');
newline;
newline;
B.print("B = ");
newline;
int i;
for(i = 0; i < 5; i++) A[i] = vector(i);
for(i = 0; i < 5; i++) B[i] = matrix(i,i);
A.print("A = ",'\n');
newline;
newline;
B.print("B = ");
newline;
return 0;
}